
#include "malloc.h"

#define RAM_START_ADDR (void *)(uint32_t)(&_sheap)
#define RAM_SIZE_BYTE  (size_t)((uint32_t)(&_eheap) - (uint32_t)(&_sheap))

/* 动态内存管理初始化. */
void main(void)
{
    malloc_addblock(RAM_START_ADDR, RAM_SIZE_BYTE);
    malloc_init();

    while (1) {
        // TODO
    };
}
